﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoodSalesManager.aspx.cs"
    Inherits="BalanceCenter_GoodSalesManager" %>

<%@ Import Namespace="System.Data" %>
<%@ Register TagPrefix="ShoveWebUI" Namespace="Shove.Web.UI" Assembly="Shove.Web.UI.2 For.NET 2.0" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>山顶软件 - 商品档案</title>     
    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <link href="../Style/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        function Open(id)
        {
            var isActivation = document.getElementById("hIsActivation").value;
            var GoodPrice = 0;  //商品价格
            
            if(isActivation == "0")
            {
                window.location.href = "../OnlinePay/Alipay/Default.aspx";
                return;
            }
            
//            var Price = parseFloat(document.getElementById("Monry_" + id).value);
//            var Balance = parseFloat(document.getElementById("hBalance").value);
//            var BV = parseFloat(document.getElementById("hBV").value);
//            
//            if(Price > Balance && Price > BV)
//            {
//                window.location.href = "../OnlinePay/Alipay/Default.aspx?Price=" + Price;
//                return;
//            }
    
            showModalDialog("GoodSalesEdit.aspx?id="+id,window,
                    "dialogHeight:500px;dialogWidth:550px;help:'no';status:'no';scroll:'no';title=''");
        }
             
    </script>

    <style type="text/css">
        .style1
        {
            width: 191px;
        }
    </style>
</head>
<body style="margin-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0;">
    <form id="form1" runat="server">
    <table width="98%" border="0" cellpadding="0" cellspacing="1" style="text-align: center;">
        <tr>
            <td>
                <asp:Panel ID="Panel1" runat="server" GroupingText="帐户余额情况" Height="92px" Width="400px"
                    BackColor="#FFFFFF">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 60px;
                        background: #f0f4f8">
                        <tr>
                            <td class="style1">
                                电子货币余额：
                            </td>
                            <td>
                                <asp:Label ID="lbVirtual" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        <asp:Panel ID="Panel2" runat="server" Visible="false">                        
                        <tr>
                            <td class="style1">
                                返还货币余额：
                            </td>
                            <td>
                                <asp:Label ID="lbBv" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                        </asp:Panel>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DataList ID="dlInfo" RepeatColumns="3" RepeatDirection="Horizontal" HorizontalAlign="center"
                    runat="server" Width="243">
                    <ItemTemplate>
                        <table cellpadding="0" cellspacing="0" width="243">
                            <tr>
                                <td align="center">
                                    <table width="230" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="250" valign="top" align="center">
                                                <a href="#" onclick="Open(<%#Eval("id") %>)">
                                                    <img src="../UpFiles/<%#Eval("TypePic") %>" alt="暂无图片" width="200" height="100" border="0" /></a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" valign="bottom">
                                                <%#Eval("TypeName") %>
                                                <input id='Monry_<%#Eval("id") %>' value='<%#Eval("price") %>' type="hidden" />
                                            </td>
                                        </tr>
                                        <%--
                                          <tr>
                                            <td align="center" valign="middle" class="blue12">
                                                點數：<%#Eval("Pv") %></td>
                                        </tr>
                                        <tr>
                                            <td height="30" align="center" valign="middle" class="red12">
                                                <a href="Basket.aspx?id=<%#Eval("id") %>">
                                                    <img src="images/botton_7.jpg" width="40" height="20" border="0" /></a> <a href="ProductsView.aspx?id=<%#Eval("id") %>"
                                                        target="_blank">
                                                        <img src="images/botton_8.jpg" width="40" height="20" border="0" /></a></td>
                                        </tr>--%>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F9F9F9">
                    <tr>
                        <td style="height: 30px;" align="center" valign="middle">
                            第<asp:Label ID="PageIndex" runat="server" Text="1"></asp:Label>页/总<asp:Label ID="MaxPage"
                                runat="server" Text="1"></asp:Label>页 | 总<asp:Label ID="TotalCount" runat="server"></asp:Label>条
                            |
                            <asp:LinkButton ID="lnkHome" OnClick="lnkHome_Click" CssClass="hei12" runat="server">首页</asp:LinkButton>
                            |
                            <asp:LinkButton ID="lnkPrev" OnClick="lnkPrev_Click" CssClass="hei12" runat="server">上页</asp:LinkButton>
                            |
                            <asp:LinkButton ID="lnkNext" OnClick="lnkNext_Click" CssClass="hei12" runat="server">下页</asp:LinkButton>
                            |
                            <asp:LinkButton ID="lnkEnd" OnClick="lnkEnd_Click" CssClass="hei12" runat="server">尾页</asp:LinkButton>
                            转到：第
                            <asp:DropDownList ID="selectPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPage_SelectedIndexChanged">
                            </asp:DropDownList>
                            页
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <input id="hBalance" type="hidden" runat="server" />
    <!-- 电子货币余额 -->
    <input id="hBV" type="hidden" runat="server" />
    <!-- 返还货币余额 -->
    <input id="hIsActivation" type="hidden" runat="server" />
    <!-- 会员是否已激活 -->
    <iframe name="ModalDialog" width="0px" height="0px" frameborder="0" style="display: none"></iframe>
    </form>
</body>
</html>
